<?php if(isset($this->session->userdata['admin'])) {?>
	<div id="top">
		<div id="header">
			<h2 style="padding:35px;color:#fff">OWS Administrator area</h2>
			<div id="info">
				<h4>Welcome <?php echo $this->session->userdata['admin']->admin_login;?></h4>
				<p><a href="<?php echo base_url();?>admin/logout">Log out</a></p>
			</div>
		</div>
		<?php
			$current_method = $this->uri->segment(2);
			$role = $this->session->userdata('role');
		?>		
	</div>
	<div id="nav">
		<div class="portlet" style="margin-bottom:0px;">
			<div class="portlet-header">
				<h4>Panel</h4>
			</div>
			<div class="portlet-content">
				<ul class="mega-container mega-grey">
					<li class="mega <?php echo ($current_method=="about")?"mega-current":"";?>">
						<a href="<?php echo base_url();?>admin/about/detail" class="mega-link">Giới thiệu</a>
					</li>
			
					<li class="mega mega-multi <?php echo ($current_method=="categories")?"mega-current":"";?>">
						<a href="<?php echo base_url();?>admin/categories/listcategories" class="mega-link">Danh mục</a>
						<ul class="sub-menu" style="margin-top:0;">
							<!--<li><a href="<?php echo base_url();?>admin/gallery/listgallery/Logo" class="mega-link">Logo</a></li>-->
							<li><a href="<?php echo base_url();?>admin/products/listitem/Hosting" class="mega-link">Hosting</a></li>
							<li><a href="<?php echo base_url();?>admin/products/listitem/Domain" class="mega-link">Domain</a></li>
							<li><a href="<?php echo base_url();?>admin/products/listitem/VPS" class="mega-link">VPS - Server</a></li>
						</ul>
					</li>
			
					<li class="mega <?php echo ($current_method=="posts")?"mega-current":"";?>">
						<a href="<?php echo base_url();?>admin/posts/listposts" class="mega-link">Bài viết</a>
					</li>
					<!--<li class="mega <?php echo ($current_method=="gallery")?"mega-current":"";?>">
						<a href="#" class="mega-link">Media</a>
						
					</li>-->
					<li class="mega <?php echo ($current_method=="news")?"mega-current":"";?>">
						<a href="<?php echo base_url();?>admin/news/listnews" class="mega-link">Quản lý tin tức</a>
					</li>
					<!--<li class="mega <?php echo ($current_method=="links")?"mega-current":"";?>">
						<a href="<?php echo base_url();?>admin/links/listlinks" class="mega-link">Quản lý liên kết</a>
					</li>-->
			
					<li class="mega <?php echo ($current_method=="lienhe")?"mega-current":"";?>">
						<a href="<?php echo base_url();?>admin/lienhe/listlienhe" class="mega-link">Thông tin liên hệ</a>
					</li>				
				</ul>
			</div>
			<!--<div class="portlet-header">
				<h4>Hệ Thống</h4>
			</div>
			<div class="portlet-content">
				<h4>Hệ Thống</h4>
			</div>	-->		
			
		</div>

	</div> <!-- #nav -->
<?php }?>